import request from '@/utils/requestWjy'

// 查询测试demo列表
export const listDemo = async (query) => {
    return await request('/demo/demo/list', query)
}

// 查询测试demo详细信息
export const getDemo = async (id) => {
    return await request('/demo/demo/getInfo', { id })
}

// 新增测试demo
export const addDemo = async (data) => {
    return await request('/demo/demo/add', data)
}

// 修改测试demo
export const updateDemo = async (data) => {
    return await request('/demo/demo/edit', data)
}

// 删除测试demo
export const delDemo = async (ids) => {
    return await request('/demo/demo/remove', { ids })
}
